﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package ZLocalization.Substituters {

    public class SubstituterEs extends SubstituterSimple {

        override public function replace(_arg1:String, _arg2:Object):String{
            var _local3:String;
            var _local4:String;
            var _local5:String;
            for (_local3 in _arg2) {
                _local4 = _arg2[_local3];
                if (_local4.indexOf("el ") == 0){
                    _local5 = _local4.substr(3);
                    _arg1 = _arg1.replace(new RegExp(((" de {" + _local3) + "}"), "g"), (" del " + _local5));
                    _arg1 = _arg1.replace(new RegExp(((" a {" + _local3) + "}"), "g"), (" al " + _local5));
                };
                _arg1 = _arg1.replace(new RegExp((("{" + _local3) + "}"), "g"), _local4);
            };
            return (_arg1);
        }

    }
}//package ZLocalization.Substituters 
